package com.gprinter.ui;

import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;

import com.gprinter.sample.BitmapManager;
import com.sample.R;

public class Main3Activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main3);
        ImageView iv2 = (ImageView) findViewById(R.id.ImageView02);
        Bitmap bitmap = BitmapManager.manager().drawQrBitmap("xxx",700, 560,   5 , 6,  "7",   "d2", "d3",
                "d4",   6 );
        // 转换为BitmapDrawable对象
        BitmapDrawable bmpDraw = new BitmapDrawable(bitmap);
        iv2.setImageDrawable(bmpDraw);


    }


}
